<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		/* 按照书写的顺序,从头到尾，最终选择最后书写的标签 顺序不能写乱 */
		/*必须是紧挨着的兄弟*/
		 div + p + h1 + h2 + span + div{
		 	background: pink;
		 }
	</style>
</head>
<body>
    <div>刘志强</div>
    <p>二营长</p>
    <h1>李锐锋</h1>
    <h2>GGboy</h2>
    <span>曾文帝</span>
    <div>王慧敏</div>
</body>
</html>